package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.Repository.TravelTemplateRepository;
import cn.wolfcode.luowowo.search.domain.TravelTemplate;
import cn.wolfcode.luowowo.search.service.ITravelSearchService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TravelSearchServiceImpl implements ITravelSearchService {

    @Autowired
    private TravelTemplateRepository repository;

    public void save(TravelTemplate travelTemplate) {
        repository.save(travelTemplate);
    }

    public List<TravelTemplate> findByDestName(String name) {
        return repository.findByDestName(name);
    }
}
